package com.kexun.service.impl;

import com.kexun.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
public class ItemService {


    @RequestMapping("getSessionId")
    public String getSessionId(HttpSession session) {
        User user = (User) session.getAttribute("user");
        System.out.println(user);
        return session.getId();
    }


}
